package com.xiaofengwx.remind.data;

public class DateUtil {
	// 公元前2697年刚好是干支纪年的开始
	public static int YEAR_CHT_DATA(MyChineseDate chtDate) {
		return ((chtDate).iCycle * 60 + (chtDate).iYear - 2697);
	}

	public static int YEAR_CHT_CYCLE(int date) {
		// ((chtDate).iCycle * 60 + (chtDate).iYear - 2697)
		return (((date) + 2697 - 1) / 60);
	}

	public static int YEAR_CHT_YEAR(int date) {
		// ((chtDate).iCycle * 60 + (chtDate).iYear - 2697)
		return (((date) + 2697 - 1) % 60 + 1);
	}
}
